const express=require('express')
const session=express.Router()

const axios=require('axios')

session.get('/picture/session',(req,res)=>{
    console.log(req.session);
    if(req.session.token){
        console.log(1);
        res.status(200).json({
            session:req.session.userMessage
        })
    }else{
        console.log(2);
        res.status(200).json({
                err:'undefined'
        })
    }
})

module.exports=session